cmake_minimum_required(VERSION 3.8)
project(flyos_topbar)

set(CMAKE_CXX_STANDARD 14)

set(CMAKE_INCLUDE_CURRENT_DIR ON)

#qt
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)

find_package(Qt5Core)
find_package(Qt5Gui)
#find_package(Qt5Network REQUIRED)
find_package(Qt5Widgets)
find_package(Qt5DBus)
find_package(Qt5Svg)

include_directories("/usr/include/libdtk-1.0/DBase")
include_directories("/usr/include/libdtk-1.0/DUtil")
include_directories("/usr/include/libdtk-1.0/DWidget")

set(SOURCE_FILES
        networkdevice.cpp
        networkdevice.h
        networkmanager.cpp
        networkmanager.h
        networkplugin.cpp
        networkplugin.h

        item/applet/accesspoint.cpp
        item/applet/accesspoint.h
        item/applet/accesspointwidget.cpp
        item/applet/accesspointwidget.h
        item/applet/devicecontrolwidget.cpp
        item/applet/devicecontrolwidget.h
        item/applet/horizontalseperator.cpp
        item/applet/horizontalseperator.h
        item/applet/wirelessapplet.cpp
        item/applet/wirelessapplet.h
        item/deviceitem.cpp
        item/deviceitem.h
        item/wireditem.cpp
        item/wireditem.h
        item/wirelessitem.cpp
        item/wirelessitem.h

        util/imageutil.cpp
        util/imageutil.h

        resources.qrc

        dbus/dbusnetwork.h
        dbus/dbusnetwork.cpp)

add_library(network SHARED ${SOURCE_FILES})
target_link_libraries(network Qt5::Widgets Qt5::Gui Qt5::Core dtkwidget Qt5::DBus Qt5::Svg)
